# from flask import Flask, render_template
# from flask import request
#
# import setting_1
#
# app=Flask(__name__)
# app.config.from_object(setting_1)
#
# @app.route('/html',methods=['GET','POST'])
# def html():
#     r=render_template('vir_test.html')#默认去模板文件夹找文件 模板文件夹只能叫templates
#     return r
#
# @app.route('/register2',methods=['GET','POST'])
# def register2():
#     print(request.full_path)
#     print(request.path)
#     print(request.args)
#    # print(request.args.get('username'))
#     #print(request.args.get('address'))
#     print(request.form)
#     print(request.form.get('username'))
#     print(request.form.get('address'))
#     return '提交成功'
#
# print(app.url_map)#路由规划表
# app.run(port=9090)
